package com.yyb.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
@Schema(title = "SysRoleUserDTO",description = "保存用户和角色关系的入参")
public class SysRoleUserDTO {

    @Schema(title = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(title = "角色数组")
    private List<Long> roleIds;
}
